/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.retail.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 采购入库单明细Entity
 * @author jyangye
 * @version 2018-01-16
 */
public class FxDeaReturnorder extends DataEntity<FxDeaReturnorder> {
	
	private static final long serialVersionUID = 1L;
	private String returnorderid;		// returnorderid
	private String userid;		// userid
	private String ordercode;		// ordercode
	private Date orderdate;		// orderdate
	private Integer receivedealerid;		// receivedealerid
	private Integer receivedealerrelationid;		// receivedealerrelationid
	private Integer returndealerid;		// returndealerid
	private Integer returndealerrelationid;		// returndealerrelationid
	private Integer returnwarehouseid;		// returnwarehouseid
	private Integer receivewarehouseid;		// receivewarehouseid
	private String handleremployeeid;		// handleremployeeid
	private String checkeremployeeid;		// checkeremployeeid
	private String checkstate;		// checkstate
	private Date makedate;		// makedate
	private String thisverifystate;		// thisverifystate
	private Date checkpasseddate;		// checkpasseddate
	private Integer warescount;		// warescount
	private String orderstate;		// orderstate
	private String remark;		// remark
	private Date updateflag;		// updateflag
	private String factorystoretranscode;		// factorystoretranscode
	private String logisticsid;		// logisticsid
	private String logisticscode;		// logisticscode
	private Double summoney;		// summoney
	private String logisticsremark;		// logisticsremark
	private Integer receivedealeraccountid;		// receivedealeraccountid
	private Integer returndealeraccountid;		// returndealeraccountid
	private Date beginMakedate;		// 开始 makedate
	private Date endMakedate;		// 结束 makedate
	
	public FxDeaReturnorder() {
		super();
	}

	public FxDeaReturnorder(String id){
		super(id);
	}

	@Length(min=1, max=32, message="returnorderid长度必须介于 1 和 32 之间")
	@ExcelField(title="returnorderid", align=2, sort=10)
	public String getReturnorderid() {
		return returnorderid;
	}

	public void setReturnorderid(String returnorderid) {
		this.returnorderid = returnorderid;
	}
	
	@Length(min=0, max=32, message="userid长度必须介于 0 和 32 之间")
	@ExcelField(title="userid", align=2, sort=20)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=30, message="ordercode长度必须介于 1 和 30 之间")
	@ExcelField(title="ordercode", align=2, sort=30)
	public String getOrdercode() {
		return ordercode;
	}

	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="orderdate不能为空")
	@ExcelField(title="orderdate", align=2, sort=40)
	public Date getOrderdate() {
		return orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}
	
	@ExcelField(title="receivedealerid", align=2, sort=50)
	public Integer getReceivedealerid() {
		return receivedealerid;
	}

	public void setReceivedealerid(Integer receivedealerid) {
		this.receivedealerid = receivedealerid;
	}
	
	@ExcelField(title="receivedealerrelationid", align=2, sort=60)
	public Integer getReceivedealerrelationid() {
		return receivedealerrelationid;
	}

	public void setReceivedealerrelationid(Integer receivedealerrelationid) {
		this.receivedealerrelationid = receivedealerrelationid;
	}
	
	@ExcelField(title="returndealerid", align=2, sort=70)
	public Integer getReturndealerid() {
		return returndealerid;
	}

	public void setReturndealerid(Integer returndealerid) {
		this.returndealerid = returndealerid;
	}
	
	@ExcelField(title="returndealerrelationid", align=2, sort=80)
	public Integer getReturndealerrelationid() {
		return returndealerrelationid;
	}

	public void setReturndealerrelationid(Integer returndealerrelationid) {
		this.returndealerrelationid = returndealerrelationid;
	}
	
	@ExcelField(title="returnwarehouseid", align=2, sort=90)
	public Integer getReturnwarehouseid() {
		return returnwarehouseid;
	}

	public void setReturnwarehouseid(Integer returnwarehouseid) {
		this.returnwarehouseid = returnwarehouseid;
	}
	
	@ExcelField(title="receivewarehouseid", align=2, sort=100)
	public Integer getReceivewarehouseid() {
		return receivewarehouseid;
	}

	public void setReceivewarehouseid(Integer receivewarehouseid) {
		this.receivewarehouseid = receivewarehouseid;
	}
	
	@Length(min=0, max=32, message="handleremployeeid长度必须介于 0 和 32 之间")
	@ExcelField(title="handleremployeeid", align=2, sort=110)
	public String getHandleremployeeid() {
		return handleremployeeid;
	}

	public void setHandleremployeeid(String handleremployeeid) {
		this.handleremployeeid = handleremployeeid;
	}
	
	@Length(min=0, max=32, message="checkeremployeeid长度必须介于 0 和 32 之间")
	@ExcelField(title="checkeremployeeid", align=2, sort=120)
	public String getCheckeremployeeid() {
		return checkeremployeeid;
	}

	public void setCheckeremployeeid(String checkeremployeeid) {
		this.checkeremployeeid = checkeremployeeid;
	}
	
	@Length(min=0, max=1, message="checkstate长度必须介于 0 和 1 之间")
	@ExcelField(title="checkstate", align=2, sort=130)
	public String getCheckstate() {
		return checkstate;
	}

	public void setCheckstate(String checkstate) {
		this.checkstate = checkstate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="makedate不能为空")
	@ExcelField(title="makedate", align=2, sort=140)
	public Date getMakedate() {
		return makedate;
	}

	public void setMakedate(Date makedate) {
		this.makedate = makedate;
	}
	
	@Length(min=1, max=1, message="thisverifystate长度必须介于 1 和 1 之间")
	@ExcelField(title="thisverifystate", align=2, sort=150)
	public String getThisverifystate() {
		return thisverifystate;
	}

	public void setThisverifystate(String thisverifystate) {
		this.thisverifystate = thisverifystate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="checkpasseddate", align=2, sort=160)
	public Date getCheckpasseddate() {
		return checkpasseddate;
	}

	public void setCheckpasseddate(Date checkpasseddate) {
		this.checkpasseddate = checkpasseddate;
	}
	
	@ExcelField(title="warescount", align=2, sort=170)
	public Integer getWarescount() {
		return warescount;
	}

	public void setWarescount(Integer warescount) {
		this.warescount = warescount;
	}
	
	@Length(min=1, max=1, message="orderstate长度必须介于 1 和 1 之间")
	@ExcelField(title="orderstate", align=2, sort=180)
	public String getOrderstate() {
		return orderstate;
	}

	public void setOrderstate(String orderstate) {
		this.orderstate = orderstate;
	}
	
	@Length(min=0, max=500, message="remark长度必须介于 0 和 500 之间")
	@ExcelField(title="remark", align=2, sort=190)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="updateflag不能为空")
	@ExcelField(title="updateflag", align=2, sort=200)
	public Date getUpdateflag() {
		return updateflag;
	}

	public void setUpdateflag(Date updateflag) {
		this.updateflag = updateflag;
	}
	
	@Length(min=0, max=100, message="factorystoretranscode长度必须介于 0 和 100 之间")
	@ExcelField(title="factorystoretranscode", align=2, sort=210)
	public String getFactorystoretranscode() {
		return factorystoretranscode;
	}

	public void setFactorystoretranscode(String factorystoretranscode) {
		this.factorystoretranscode = factorystoretranscode;
	}
	
	@Length(min=0, max=32, message="logisticsid长度必须介于 0 和 32 之间")
	@ExcelField(title="logisticsid", align=2, sort=220)
	public String getLogisticsid() {
		return logisticsid;
	}

	public void setLogisticsid(String logisticsid) {
		this.logisticsid = logisticsid;
	}
	
	@Length(min=0, max=30, message="logisticscode长度必须介于 0 和 30 之间")
	@ExcelField(title="logisticscode", align=2, sort=230)
	public String getLogisticscode() {
		return logisticscode;
	}

	public void setLogisticscode(String logisticscode) {
		this.logisticscode = logisticscode;
	}
	
	@ExcelField(title="summoney", align=2, sort=240)
	public Double getSummoney() {
		return summoney;
	}

	public void setSummoney(Double summoney) {
		this.summoney = summoney;
	}
	
	@Length(min=0, max=3200, message="logisticsremark长度必须介于 0 和 3200 之间")
	@ExcelField(title="logisticsremark", align=2, sort=250)
	public String getLogisticsremark() {
		return logisticsremark;
	}

	public void setLogisticsremark(String logisticsremark) {
		this.logisticsremark = logisticsremark;
	}
	
	@ExcelField(title="receivedealeraccountid", align=2, sort=260)
	public Integer getReceivedealeraccountid() {
		return receivedealeraccountid;
	}

	public void setReceivedealeraccountid(Integer receivedealeraccountid) {
		this.receivedealeraccountid = receivedealeraccountid;
	}
	
	@ExcelField(title="returndealeraccountid", align=2, sort=270)
	public Integer getReturndealeraccountid() {
		return returndealeraccountid;
	}

	public void setReturndealeraccountid(Integer returndealeraccountid) {
		this.returndealeraccountid = returndealeraccountid;
	}
	
	public Date getBeginMakedate() {
		return beginMakedate;
	}

	public void setBeginMakedate(Date beginMakedate) {
		this.beginMakedate = beginMakedate;
	}
	
	public Date getEndMakedate() {
		return endMakedate;
	}

	public void setEndMakedate(Date endMakedate) {
		this.endMakedate = endMakedate;
	}
		
}